package com.realtyManage.springboot.Dao;

import com.realtyManage.springboot.Model.Do.CustFlowEvent;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CustFlowEventRepository extends JpaRepository<CustFlowEvent,Integer>, JpaSpecificationExecutor<CustFlowEvent> {

    List<CustFlowEvent> findByConnCustIdOrderByOperateCodeAsc(Integer cid);

    CustFlowEvent findByConnCustIdAndOperateCode(Integer custId, int operateCode);
}
